package com.hope.hotel.service;

import com.alipay.api.AlipayApiException;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;

import java.io.IOException;

/**
 * 支付服务接口
 */
public interface PaymentService {

    /**
     * 创建支付订单
     *
     * @param bookingId 预订ID
     * @param userId    用户ID
     * @param response
     * @return 支付表单HTML
     */
    void createPayment(String bookingId, HttpServletResponse response) throws AlipayApiException, IOException;

    void notifyPayment(HttpServletRequest request);
}